import request from '@/utils/request'

// 查询供应商存货列表
export function listVendorsItems(query) {
  return request({
    url: '/system/VendorsItems/list',
    method: 'get',
    params: query
  })
}

// 查询供应商存货详细
export function getVendorsItems(vendorId) {
  return request({
    url: '/system/VendorsItems/' + vendorId,
    method: 'get'
  })
}

// 新增供应商存货
export function addVendorsItems(data) {
  return request({
    url: '/system/VendorsItems',
    method: 'post',
    data: data
  })
}

// 修改供应商存货
export function updateVendorsItems(data) {
  return request({
    url: '/system/VendorsItems',
    method: 'put',
    data: data
  })
}

// 删除供应商存货
export function delVendorsItems(vendorId) {
  return request({
    url: '/system/VendorsItems/' + vendorId,
    method: 'delete'
  })
}
